export default {
    /*判断无效值：undefined、isNaN、null、"null"、""*/
    isNullUndefinedTemp: function (value) {
        return (typeof (value) == "undefined") || ((typeof (value) == "number") && isNaN(value)) || (value == "null") || (!value && value == 0) || (typeof (value) === "string" ? value.trim() == "" : false);
    },
	// 获取当前年月日
	getCarrentTime(){
	    let myDate = new Date();
	    let year = myDate.getFullYear(); 
	    let month = myDate.getMonth()+1;
	    let day = myDate.getDate();
	    return year+'-'+month+'-'+day;
	},
}
